/*
 * Copyright (c) 2006-2021, RT-Thread Development Team
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Change Logs:
 * Date           Author       Notes
 * 2024-05-12     liuchao       the first version
 */
#ifndef DRIVERS_INCLUDE_DRV_LOCK_SWITCH_H_
#define DRIVERS_INCLUDE_DRV_LOCK_SWITCH_H_
#include "board.h"
#define LOCK_SWITCH_2MM_PIN GET_PIN(G, 8)
#define LOCK_SWITCH_4MM_PIN GET_PIN(G, 7)

typedef enum
{
    LOCK_SWITCH_START, LOCK_SWITCH_2MM = LOCK_SWITCH_START, LOCK_SWITCH_4MM, LOCK_SWITCH_END
} lock_switch_e;

typedef enum
{
    LOCK_SWITCH_STATE_INACTIVE, LOCK_SWITCH_STATE_ACTIVE,
} lock_switch_state_e;

const char* lock_switch_name(lock_switch_e lock_switch);
int lock_switch_read(lock_switch_e lock_switch);
lock_switch_state_e lock_switch_state(lock_switch_e lock_switch);

#endif /* DRIVERS_INCLUDE_DRV_LOCK_SWITCH_H_ */
